﻿using System;
using CompactMapper.Orm.Contracts;

namespace CompactMapper.Orm.Queries
{
    internal class ForeignKeyCriterion<T> : Criterion<T, IKey>
    {
        public ForeignKeyCriterion(String parentTable, IKey foreignKey)
            : base(parentTable, foreignKey)
        {
        }

        public override CriterionType Type
        {
            get { return CriterionType.ForeignKeyEquals; }
        }

        public override bool Validate(T entity)
        {
            throw new NotImplementedException();
        }
    }
}